﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inspired.Euler
{
    public static class Problem036
    {
        static void Main()
        {
            Enumerable.Range(1, 1000000)
                      .Where(i => i.IsPalindrome(10) && i.IsPalindrome(2))
                      .Sum()
                      .DisplayAndPause();
        }
    }
}
